package com.lihuanyu.upcOA.service;

import com.lihuanyu.upcOA.conn.databaseUtil;
import com.lihuanyu.upcOA.model.upyunTable;

/**
 * Created by LENOVO on 2015/9/2.
 */
public class upyunroad {
    public  int i;

    public int dbupyunroad(upyunTable upyun){
        String sql="INSERT INTO `class_file`(`teaname`, `classname`, `linkfile`) VALUES " +
                "('"+upyun.getTeaname()+"','"+upyun.getClassname()+"','"+upyun.getPath()+"')";
        databaseUtil db = new com.lihuanyu.upcOA.conn.databaseUtil();
        i=db.Update(sql);
        db.sqlclose();
        return i;
    }

}
